package com.wwwzh.himalayafm.retrofit;

import com.wwwzh.himalayafm.entity.AdEntity;
import com.wwwzh.himalayafm.entity.entity_broadtwo.BroadTotalEntity;
import com.wwwzh.himalayafm.entity.entity_broadtwo.ProEntity;
import com.wwwzh.himalayafm.entity.entity_category.BottomEntity;
import com.wwwzh.himalayafm.entity.entity_category.TotalEntity;
import com.wwwzh.himalayafm.entity.entity_live.LiveTatolEntity;
import com.wwwzh.himalayafm.entity.recommend.albumdetail.albumdetailde.AlbumDetailDe;
import com.wwwzh.himalayafm.entity.recommend.albumdetailshow.AlbumDetailShow;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2016/12/5.
 */

public interface HttpService {

    @GET("mobile/discovery/v1/categories")
    Call<TotalEntity> getCategoryEntity(@Query("channel") String channel, @Query("device") String device,
                                        @Query("picVersion") int picVersion, @Query("scale") int scale);


    //?=android&=cata_index_banner&=wifi&=0&version=4.3.98

    @GET("ting")
    Call<BottomEntity> getBottomEntity(@Query("device") String device, @Query("name") String name,
                                       @Query("network") String network, @Query("operator") int operator,
                                       @Query("version") String version);

    /**
     * Created by wuruyuan on 2016/12/5.
     */
    @GET("live-web/v1/getRadiosListByType")
    Call<BroadTotalEntity> getResult(@Query("pageNum") int pageName, @Query("pageSize") int pageSize, @Query("provinceCode") String provinceCode, @Query("radioType") int radioType);

    @GET("live-web/v1/getProvinceList")
    Call<ProEntity> getResult();

    interface LiveHttpService {
        @GET("live-web/v4/homepage")
        Call<LiveTatolEntity> getData();
    }


    @GET("mobile/v1/album?albumId=3523862&device=android&pageId=null&pageSize=20")
    Call<AlbumDetailShow> getAlbumShow();

    @GET("mobile/v1/album/detail?albumId=3523862")
    Call<AlbumDetailDe> getAlbumDetailDe();

    interface AdGetService {
        @GET("ting/loading?appid=0&device=android&name=loading&network=wifi&operator=0&version=4.3.98")
        Call<AdEntity> getAdCover();
    }
    interface  BottomAdGetService{
        @GET("ting?device=android&name=find_banner&network=wifi&operator=0&version=4.3.98")
        Call<AdEntity> getBottomAd();
    }
}
